/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package iTrace.impl;

import iTrace.AbstractionLevel;
import iTrace.ITracePackage;
import iTrace.Model;
import iTrace.ModelElement;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EClass;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Model</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link iTrace.impl.ModelImpl#getModelModelElement <em>Model Model Element</em>}</li>
 *   <li>{@link iTrace.impl.ModelImpl#getName <em>Name</em>}</li>
 *   <li>{@link iTrace.impl.ModelImpl#getAbstractionLevel <em>Abstraction Level</em>}</li>
 *   <li>{@link iTrace.impl.ModelImpl#isMetamodel <em>Metamodel</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class ModelImpl extends ArtefactImpl implements Model {
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ModelImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	protected EClass eStaticClass() {
		return ITracePackage.Literals.MODEL;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@SuppressWarnings("unchecked")
	public EList<ModelElement> getModelModelElement() {
		return (EList<ModelElement>)eGet(ITracePackage.Literals.MODEL__MODEL_MODEL_ELEMENT, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
		return (String)eGet(ITracePackage.Literals.MODEL__NAME, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setName(String newName) {
		eSet(ITracePackage.Literals.MODEL__NAME, newName);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public AbstractionLevel getAbstractionLevel() {
		return (AbstractionLevel)eGet(ITracePackage.Literals.MODEL__ABSTRACTION_LEVEL, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setAbstractionLevel(AbstractionLevel newAbstractionLevel) {
		eSet(ITracePackage.Literals.MODEL__ABSTRACTION_LEVEL, newAbstractionLevel);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean isMetamodel() {
		return (Boolean)eGet(ITracePackage.Literals.MODEL__METAMODEL, true);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setMetamodel(boolean newMetamodel) {
		eSet(ITracePackage.Literals.MODEL__METAMODEL, newMetamodel);
	}

} //ModelImpl
